package sel.me.websocket.learning.config;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

public class AppApplyInterceptor  implements HandlerInterceptor {
	
	Logger logger = LoggerFactory.getLogger(this.getClass());

    @Value("${app.sign_key}")
    private String appSignKey;


    protected static final Integer DURATION_TIME = 120000;

    protected static final String SIGN_KEY = "sign";

    protected static final String TIME = "timestamp";

	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
			throws Exception {
		String url = request.getRequestURL().toString();
		return true;
	}

	@Override
	public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,
			ModelAndView modelAndView) throws Exception {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
			throws Exception {
		// TODO Auto-generated method stub
		
	}

//    private static int expireTime = 30;

//    private static String prefix = "esports-shiro-session:";

//    private static final Integer STATE_CODE = 200;

    
    
}
